package cn.tedu.egmybatis2.mapper;

import cn.tedu.egmybatis2.entity.Product;
import cn.tedu.egmybatis2.vo.ProductVO;
import cn.tedu.egmybatis2.vo.ProductVO2;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductMapper {
    void insertProduct(Product product);

    ProductVO selectProductById(Long id);

    List<ProductVO2> selectAllProductById();

    void deleteProduct(Long id);

    void updateById(Product product);

}
